dotConnect for MongoDB Documentation
Devart.Data.MongoDB Namespace / MongoDBCommandBuilder Class / GetUpdateCommand Method / GetUpdateCommand(String[],Boolean) Method

On this page
    GetUpdateCommand(String[],Boolean) Method
    On this page
    Returns the generated command that updates the specified fields; if no fields are specified, all fields except "_id" are updated. The UpdatingFields property is not changed. Throws System.InvalidOperationException if the data adapter has no select command.
    Syntax
    'Declaration
     
    Public Overloads Shadows Function GetUpdateCommand( _
       ByVal fields() As String, _
       ByVal useColumnsForParameterNames As Boolean _
    ) As MongoDBCommand
    public new MongoDBCommand GetUpdateCommand( 
       string[] fields,
       bool useColumnsForParameterNames
    )

    Parameters

    fields
    useColumnsForParameterNames
    See Also